package cn.itcast.consumer.client;

import cn.itcast.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author 虎哥
 */
@Component
public class UserClientFallback implements UserClient {
    /**
     * fallback方法
     * @param id id
     * @return 用户
     */
    @Override
    public User queryById(Long id) {
        return new User();
    }
}
